/**
 * Configure and register global directives
 */
import type { App } from 'vue';
import { setupEllipsisDirective } from './ellipsis';
import { setupLoadingDirective } from './loading';
import { setupPermissionDirective } from './permission';

export function setupGlobDirectives(app: App) {
  setupPermissionDirective(app); // 如下发的权限具体怎么落实，在此处通过指令的方式实现
  setupLoadingDirective(app);  // loading 状态
  setupEllipsisDirective(app);
}
